package com.star.system.enums;

import com.star.common.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 菜单类型枚举
 *
 * @author yangzj
 */
@AllArgsConstructor
@Getter
public enum MenuType implements BaseEnum<Integer> {

    /**
     * 类型（0菜单 1按钮）字典: menu_type
     */
    MENU(0, "菜单"),
    BUTTON(1, "按钮");

    private final Integer code;
    private final String name;


    @Override
    public String getTypeCode() {
        return "menu_type";
    }

    @Override
    public String getTypeName() {
        return "菜单类型";
    }
}
